import Vue from 'vue'
import Router from 'vue-router'
// 首页组件
import Home from '@/components/home/Home'
// 导入城市选择页面组件
import City from '@/components/city/City'
// 导入详情页
import Details from '@/components/details/Details'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    }, {
      path: '/city',
      name: 'City',
      component: City
    }, {
      path: '/details',
      name: 'Details',
      component: Details
    }
  ]
})
